#ifndef GOBANG_SERVER_H
#define GOBANG_SERVER_H
#include<winsock.h>
#pragma comment(lib,"ws2_32.lib")
struct S_Node{
    int x,y,Num;
};
class server{
public:
    server();
    void network_send(int x,int y,int Num);
    S_Node network_recv();
	 ~server();
private:
    int len;
    char send_buf[100],recv_buf[100];
    S_Node recv_node,send_node;
    SOCKET s_server,s_accept;
    SOCKADDR_IN server_addr;
    SOCKADDR_IN accept_addr;
    WORD w_req;
    HANDLE h_thread;
};

#endif
